﻿
namespace ETask.Api.Dtos
{
    public class ProjectMemberDto
    {
        public int Id { get; set; }

        public int UserId { get; set; }

        public int ProjectId { get; set; }

        public string Account { get; set; }

        public string Name { get; set; }

        public string ? DeptName { get; set; }

        public string? Phone { get; set; }

        public string? Email { get; set; }

        public string Role { get; set; }

        public DateTime CreatedAt { get; set; }
    }

    /// <summary>
    /// 添加项目成员请求
    /// </summary>
    public class AddProjectMembersRequest
    {
        public int ProjectId { get; set; }
        public List<ProjectMemberDto> Members { get; set; }
    }

    /// <summary>
    /// 批量添加项目成员请求
    /// </summary>
    public class BatchAddProjectMembersRequest
    {
        public int ProjectId { get; set; }
        public List<int> UserIds { get; set; }
        public string Role { get; set; } = "developer";
    }
}
